/*html {*/
/*    font-family: sans-serif;*/
/*    -ms-text-size-adjust: 100%;*/
/*    -webkit-text-size-adjust: 100%*/
/*}*/

/*body {*/
/*    margin: 0*/
/*}*/
/*.header {*/
/*    display: block*/
/*}*/

/*.header .header-inner {*/
/*    width: 1200px;*/
/*    margin: 0 auto;*/
/*    height: 80px*/
/*}*/

/*.header-placeholder {*/
/*    height: 81px*/
/*}*/

/*.header form,*/
/*.header h3,*/
/*.header input,*/
/*.header li,*/
/*.header ul {*/
/*    padding: 0;*/
/*    margin: 0;*/
/*    list-style: none;*/
/*    border: none*/
/*}*/

/*.header {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    z-index: 999;*/
/*    width: 100%;*/
/*    min-width: 1200px;*/
/*    background-color: #fff;*/
/*    border-bottom: 1px solid #d8d8d8*/
/*}*/



/*.header .logo {*/

/*    background-size: contain;*/
/*    overflow: hidden*/
/*}*/

/*.header .logo,*/
/*.header a.logo {*/
/*    background-image: url("../img/logo.png");*/
/*    background-repeat: no-repeat;*/
/*    float: left;*/
/*    width: 133px;*/
/*    height: 80px*/
/*}*/

/*.header a.logo {*/
/*    line-height: 100em*/
/*}*/

/*.header .nav {*/
/*    display: inline-block;*/
/*    background-color: #fff;*/
/*    overflow: hidden;*/
/*    float: left*/
/*}*/

/*.header .nav .navbar li {*/
/*    float: left*/
/*}*/

/*.header .nav .navbar li a {*/
/*    text-align: center;*/
/*    display: inline-block;*/
/*    height: 80px;*/
/*    line-height: 80px;*/
/*    width: 70px;*/
/*    font-size: 18px;*/
/*    color: #333*/
/*}*/

/*.header .nav .navbar li a:hover {*/
/*    color: #ef4238*/
/*}*/

/*.header .nav .navbar li a.active {*/
/*    color: #fff;*/
/*    background-color: #ef4238*/
/*}*/

/*.header form {*/
/*    float: right;*/
/*    margin: 20px 10px 0 0;*/
/*    position: relative*/
/*}*/

/*.header form input {*/
/*    -webkit-box-sizing: border-box;*/
/*    box-sizing: border-box*/
/*}*/

/*.header form .search {*/
/*    display: inline-block;*/
/*    height: 40px;*/
/*    line-height: 1.2;*/
/*    width: 220px;*/
/*    padding: 0 40px 0 20px;*/
/*    border: 1px solid #ccc;*/
/*    font-size: 14px;*/
/*    border-radius: 30px;*/
/*    background-color: #faf8fa;*/
/*    overflow: hidden;*/
/*    color: #333*/
/*}*/

/*.ie8 .header form .search {*/
/*    padding-top: 11px*/
/*}*/

/*.header form .submit {*/
/*    display: inline-block;*/
/*    position: absolute;*/
/*    left: 180px;*/
/*    top: 0;*/
/*    height: 40px;*/
/*    width: 40px;*/
/*    background-color: #ef4238;*/
/*    border-radius: 30px;*/
/*    background-image: url();*/
/*    cursor: pointer*/
/*}*/

/*.header .user-info {*/
/*    float: right;*/
/*    position: relative;*/
/*    z-index: 9999;*/
/*    height: 100%*/
/*}*/

/*.header .user-info .user-avatar {*/
/*    display: block;*/
/*    border: 1px solid transparent;*/
/*    border-top: none;*/
/*    border-bottom: none;*/
/*    padding: 0 10px;*/
/*    width: 56px;*/
/*    height: 100%*/
/*}*/

/*.header .user-info .user-avatar img {*/
/*    margin-top: 20px;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    cursor: pointer*/
/*}*/

/*.header .user-info .user-avatar .caret {*/
/*    position: absolute;*/
/*    top: 39px;*/
/*    right: 10px*/
/*}*/

/*.header .user-info .user-avatar:hover {*/
/*    border-color: #d8d8d8*/
/*}*/

/*.header .user-info .user-avatar:hover .caret {*/
/*    -webkit-transform: rotate(180deg);*/
/*    -ms-transform: rotate(180deg);*/
/*    transform: rotate(180deg)*/
/*}*/

/*.header .user-info .user-avatar:hover .user-menu {*/
/*    display: block*/
/*}*/

/*.header .user-info .user-avatar:hover:after {*/
/*    content: " ";*/
/*    position: absolute;*/
/*    height: 10px;*/
/*    bottom: -1px;*/
/*    left: 1px;*/
/*    right: 1px;*/
/*    background-color: #fff*/
/*}*/

/*.header .user-info .user-menu {*/
/*    display: none;*/
/*    position: absolute;*/
/*    right: 0;*/
/*    top: 80px;*/
/*    border: 1px solid #d8d8d8;*/
/*    background-color: #fff;*/
/*    font-size: 14px;*/
/*    color: #333;*/
/*    text-align: right;*/
/*    padding: 15px 10px 5px;*/
/*    text-align: center*/
/*}*/

/*.header .user-info .user-menu li {*/
/*    margin-bottom: 6px*/
/*}*/

/*.header .user-info .user-menu li>a {*/
/*    color: #999;*/
/*    display: block;*/
/*    word-break: keep-all;*/
/*    white-space: nowrap;*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis*/
/*}*/

/*.header .user-info .user-menu li>a:hover {*/
/*    color: #ef4238;*/
/*    text-decoration: underline*/
/*}*/

/*.header .user-info .user-menu li.text {*/
/*    word-break: keep-all;*/
/*    white-space: nowrap;*/
/*    text-overflow: ellipsis;*/
/*    overflow: hidden*/
/*}*/

/*.header .user-info .no-login-menu {*/
/*    padding: 15px 24px 5px*/
/*}*/

html,
body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}

* {
    box-sizing: border-box;
}

ul,
li {
    margin: 0;
    padding: 0;
}

body {
    background-color: #e5e9ea;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

ul {
    position: relative;
    display: flex;
}

ul li {
    /* 如果设置为inline-block，会有空隙 */
    /* https://stackoverflow.com/questions/19038799/why-is-there-an-unexplainable-gap-between-these-inline-block-div-elements */
    list-style: none;
    width: 120px;
    line-height: 40px;
    text-align: center;
}

ul li a {
    color: #331414;
    text-decoration: none;
}

.slider {
    width: 100px;
    height: 40px;
    background-color: #5352ed;
    border-radius: 4px;
    position: absolute;
    left: 10px;
    bottom: 0;
    z-index: -1;
    transition: all ease 0.4s;
    animation: 2s ease-in-out waves infinite;
}


li:nth-child(1):hover ~ .slider {
    left: 10px;
}

li:nth-child(2):hover ~ .slider {
    left: 128px;
}

li:nth-child(3):hover ~ .slider {
    left: 248px;
}

li:nth-child(4):hover ~ .slider {
    left: 368px;
}

li:nth-child(5):hover ~ .slider {
    left: 488px;
}

@keyframes waves {
    from {
        clip-path: polygon(
                0% 17%,
                9% 10%,
                18% 4%,
                30% 0%,
                43% 1%,
                49% 4%,
                57% 7%,
                66% 10%,
                78% 11%,
                89% 11%,
                96% 9%,
                100% 7%,
                100% 100%,
                0% 100%
        );
    }
    50% {
        clip-path: polygon(
                0% 4%,
                6% 9%,
                13% 13%,
                23% 15%,
                31% 16%,
                42% 15%,
                49% 13%,
                61% 10%,
                71% 5%,
                81% 3%,
                90% 2%,
                100% 5%,
                100% 100%,
                0% 100%
        );
    }
    to {
        clip-path: polygon(
                0% 17%,
                9% 10%,
                18% 4%,
                30% 0%,
                43% 1%,
                49% 4%,
                57% 7%,
                66% 10%,
                78% 11%,
                89% 11%,
                96% 9%,
                100% 7%,
                100% 100%,
                0% 100%
        );
    }
}
